package com.demo.feifan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.demo.feifan.annotation.DynamicDataSource;
import com.demo.feifan.entity.Test1;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface TestMapper extends BaseMapper<Test1> {
    /**
     * 切换数据源
     * 不加就是默认数据源
     */
    @DynamicDataSource("clickhouse")
    List<Test1> test();

}
